package com.sh.example.provider;

import com.sh.example.common.model.User;
import com.sh.example.common.service.UserService;

import java.util.Random;

public class UserServiceImpl implements UserService {
    @Override
    public void sayHello(String name) {
        System.out.println("hello  " + name);
    }


    @Override
    public User addHello(User user) {
        user.setName("hello :" + user.getName());
        return user;
    }


    @Override
    public int randomInt() {
        Random random = new Random();
        return random.nextInt();
    }
}
